
<!--
<?php
$_fromurl=urlencode($_fromurl);
print <<<EOT
-->
<link rel="stylesheet" type="text/css" href="$webdb[www_url]/images/health/css/zym.css">
<style>
<!--
#baseinfoDiv {width:400px;float:left;margin-left:5px;}
*+html #baseinfoDiv {margin-left:3px;}
-->
</style>
<script  src="$webdb[www_url]/images/health/js/swfobject_source.js" type=text/javascript></script>
<script  src="$webdb[www_url]/images/health/js/city.js" type=text/javascript></script>
<div class="bannerbot width auto"></div>
	<!--banner结束-->

<SCRIPT LANGUAGE = JavaScript>
var s=["atc_provice","atc_city"]; 
var opt0 = ["请选择","请选择"]; 
function setup() 
{ 
for(i=0;i<s.length-1;i++) 
document.getElementById(s[i]).onchange=new Function("change("+(i+1)+")"); 
change(0); 
}
</SCRIPT>
<div style="width:948px; height:160px; margin:0 auto;"><img src="$webdb[www_url]/images/health/images/jktj.jpg" width="948" height="160" /></div>
	<div class="main width auto">
	<div class="maincon width auto">
		<div class="mainleft" style="background:url($webdb[www_url]/images/health/images/hui.jpg);"></div>
		<div class="mainleft maincen">
			  <div class="zjleft">
			  	<div class="zjleft"><img src="$webdb[www_url]/images/health/images/tijianbuz.jpg" width="237" height="40" /></div>
				<div class="zjlefts" style="padding-left:17px"><img src="$webdb[www_url]/images/health/images/mainconrighttop.jpg" width="190" height="23" /></div>
				<div class="zjlefts"><img src="$webdb[www_url]/images/health/images/jianka1.jpg" width="187" height="44" /></div>
				<div class="zjlefts"><img src="$webdb[www_url]/images/health/images/187.jpg" width="187" height="26" /></div>
				<div class="zjlefts"><img src="$webdb[www_url]/images/health/images/zhibiao1.jpg"/></div>
				<div class="zjlefts"><img src="$webdb[www_url]/images/health/images/hjt.jpg" width="190" height="23" /></div>
				<div class="zjlefts"><img src="$webdb[www_url]/images/health/images/chujian1.jpg"/></div>
				<div class="zjlefts"><img src="$webdb[www_url]/images/health/images/hjt.jpg" width="190" height="23" /></div>
				<div class="zjlefts"><img src="$webdb[www_url]/images/health/images/gaijin1.jpg"/></div>
				<div class="zjlefts"><img src="$webdb[www_url]/images/health/images/hjt.jpg" width="190" height="23" /></div>
				<div class="zjlefts"><img src="$webdb[www_url]/images/health/images/tijian1.jpg"/></div>
				<div class="zjlefts" style="padding-left:17px"><img src="$webdb[www_url]/images/health/images/mainconrightbot.jpg" width="190" height="23" /></div>
				
				<form action="$webdb[www_url]/do/test.php" method="post">
				<input type="hidden" name="step" value="20"/>
				<div class="zjleft" style="margin:10px 0px;"><input type="image" src="$webdb[www_url]/images/health/images/baiqiang.jpg"/></div>
				</form>
				
				<div class="zjleft"><img src="$webdb[www_url]/images/health/images/ship.jpg" width="237" height="51" /></div>
<!--
EOT;
$query = $db->query("SELECT * FROM h_article where mid=110 limit 1");
$rs = $db->fetch_array($query);
print <<<EOT
-->
				<div class="zjleft" style="padding:0 13px;"><a href="list.php?fid=14"><img src="$webdb[www_url]/upload_files/$rs[picurl]" width="211" height="165" /></a></div>
			  </div>
			  	<form name="form1" method="post" action="?f" onsubmit="return regpost();">
			  		<input type="hidden" name="step" value="2">
			  		<input type="hidden" value="$_fromurl" name="jumpto">
			    <div class="zjright">
				  <div class="zjright"><img src="$webdb[www_url]/images/health/images/724.jpg" width="724" height="22" /></div>
				  <div class="zjright">
				    <div class="left"><img src="$webdb[www_url]/images/health/images/hong1.jpg" width="34" height="72" /></div>
					<div class="just">
					   <div class="justs">当前位置：注册 >&nbsp;&nbsp;<b style=" color:#F00; font-weight:bold" >信息填写</b></div>
					   <div class="shisix"></div>
					   <div class="justp">
						<div class="s_top"><img src="$webdb[www_url]/images/health/images/sbh.jpg" width="656" height="11" /></div>
						<div class="zjdiv">
					   <div class="byhq" style="color:#FFF; font-weight:bold;">填写信息</div>
						<div class="yh">&nbsp;&nbsp;&nbsp;&nbsp;用&nbsp;户&nbsp;名：
							<input type="text" name="username" id="reg_username" class="biaodan" id="reg_username" onBlur="ckdata('reg_username','username_msg','name')"/><font color="red"> * </font><span style="color:#F00" id="username_msg">请输入您公司的10位组织机构代码(如:12345678-9)</span>       
                		</div>
			   			<div class="yh">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;密&nbsp;&nbsp;&nbsp;码：
                			<input type="password" name="password" class="biaodan" id="reg_password" onBlur="ckdata('reg_password','password_msg','pwd')"/><font color="red">  * </font><span style="color:#F00" id="password_msg">请输入6-12位密码 </span>  
               			</div>
			   <div class="yh">&nbsp;&nbsp;&nbsp;&nbsp;确认密码：
                <input type="password" name="password2" class="biaodan" id="reg_password2" onBlur="ckrepassword()" /><font color="red">  * </font><span style="color:#F00" id="repassword_msg">请输入6-12位确认密码  </span>  
               </div>
			   <div class="yh">&nbsp;&nbsp;&nbsp;&nbsp;企业名称：
                <input type="text" class="biaodan" name='postdb[company_name]' id='atc_company_name'/><font color="red">  * </font>
               </div>
			   	<div class="yh">&nbsp;&nbsp;&nbsp;&nbsp;邮&nbsp;&nbsp;&nbsp;&nbsp;箱：
			   		<input type="text" name="email" class="biaodan" id="reg_email" onBlur="ckdata('reg_email','email_msg','email')"/><font color="red">&nbsp;* </font><span id="email_msg" style="color:#F00"></span>
			   	</div>
				<div class="yh">&nbsp;&nbsp;&nbsp;&nbsp;注&nbsp;册&nbsp;码：
			   		<input type="text" name="yznum" class="biaodan" id="reg_num" /><font color="red">&nbsp;* </font>
			   		<input  value="获取注册码" type="button"  onClick="sendsms(1);"/>
			   	</div>
			   	<div class="yh" style="height:72px;vertical-align: middle;">
			   		<div style="float:left;margin-top:5px;">&nbsp;&nbsp;&nbsp;&nbsp;基本信息：</div>
			   		<div id="baseinfoDiv"><textarea name='postdb[basic_info]' id="textarea" cols="45" rows="5"  style="line-height:17px; "></textarea></div>
			   	</div>
			   
			   <div class="yh">&nbsp;&nbsp;&nbsp;&nbsp;行&nbsp;&nbsp;&nbsp;&nbsp;业：
			   	<select style="border:1px solid #CCC; width:160px; " name='postdb[trade]' id='atc_trade'>
			      	<option value='1' selected>住宿与餐饮业</option>
                </select> <!-- 为保证体检结果的准确性，请正确选择行业 -->
               </div>
			   <div class="yh">&nbsp;&nbsp;&nbsp;&nbsp;规&nbsp;&nbsp;&nbsp;&nbsp;模：
                 <select style="border:1px solid #CCC; width:160px; " name='postdb[scale]' id='atc_scale'>
                 	<option value="0">——请选择经营规模——</option>
			      	<option value='6'>500万以下</option>
			      	<option value='1'>500万-1000万</option>
			      	<option value='2'>1000万-2000万</option>
			      	<option value='3'>3000万-1亿</option>
			      	<option value='4'>1亿-3亿</option>
			      	<option value='5'>3亿以上</option>
                </select> 
               </div>
			   <div class="yh">&nbsp;&nbsp;&nbsp;&nbsp;企业性质：
                 <select style="border:1px solid #CCC; width:160px; " name='postdb[com_property]' id='atc_com_property'>
                	<option value='0'>——请选择经营性质——</option>
			      	<option value='1'>民营</option>
			      	<option value='2'>国营</option>
			      	<option value='3'>股份制</option>
			      	<option value='4'>外资</option>
			      	<option value='5'>合资</option>
                </select> 
               </div>
				<div class="yh">&nbsp;&nbsp;&nbsp;&nbsp;一级区域：
			   		<select style="border:1px solid #CCC; width:120px; " name='postdb[a_area]' id='atc_provice'>
			   				<option></option>
			   				</select><font color="red"> *</font>
				</div>
				<div class="yh">&nbsp;&nbsp;&nbsp;&nbsp;二级区域：
			   		<select style="border:1px solid #CCC; width:120px; " name='postdb[b_area]' id='atc_city'>
			   				<option></option>
			   				</select><font color="red"> *</font>
			   	</div>
			   	<div class="yh">&nbsp;&nbsp;&nbsp;&nbsp;联系电话：
                	<input type="text" class="biaodan" name='mobphone' id='atc_postdb[telephone]'/><font color="red"> *</font>
			   	</div>
					  
				  </div>
					<div class="s_top"><img src="$webdb[www_url]/images/health/images/xbh.jpg" width="656" height="11" /></div>
					</div>
					  <div class="yhyw"><input type="image" src="$webdb[www_url]/images/health/images/tijiao.jpg" alt="提交"/> 
					  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					  <img src="$webdb[www_url]/images/health/images/chongzhi.jpg" width="72" height="23" onclick="this.reset()"/>
					  </div>
				  
				  </div>
				  <div class="left"><img src="$webdb[www_url]/images/health/images/hong2.jpg" width="34" height="72" /></div>
				</div>
			</div>
			</form>
			</div>
    </div>
	</div>
<SCRIPT LANGUAGE="JavaScript">
<!--
var filed_id='';
var filed_name='';
function ckregdata(a,b){
	filed_id=a;
	filed_name=b;
}
function ckregdatapost(){
	id_array=filed_id.split(',');
	name_array=filed_name.split(',');
	for(var i=0;i<id_array.length;i++){
		if(id_array[i]!=''&&document.getElementById(id_array[i]).value==''){
			alert("“"+name_array[i]+'”不能为空');
			document.getElementById(id_array[i]).focus();
			return false;
		}
	}
}
document.write('<script src="$webdb[www_url]/images/default/setday.js"><\/script>');
//-->
</SCRIPT>

<SCRIPT language="javascript">
setup() 
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
function regpost(){
	if(document.getElementById('reg_username').value==''){
		alert('用户名不能为空');
		document.getElementById('reg_username').focus();
		return false;
	}
	if(document.getElementById('reg_username').value.length != 10) {
		alert('请输入您公司的10位组织机构代码(如:12345678-9)');
		return false;
	}
	if(document.getElementById('reg_email').value==''){
		alert('邮箱不能为空');
		document.getElementById('reg_email').focus();
		return false;
	}
	if(document.getElementById('reg_password').value==''){
		alert('密码不能为空');
		document.getElementById('reg_password').focus();
		return false;
	}
	if(document.getElementById('reg_password2').value==''){
		alert('重复密码不能为空');
		document.getElementById('reg_password2').focus();
		return false;
	}
	if(document.getElementById('atc_company_name').value==''){
		alert('企业名称不能为空');
		document.getElementById('atc_company_name').focus();
		return false;
	}
	if(ckregdatapost()==false){
		return false;
	}
}
function ckdata(a,b,c){
	$.ajax({
		data : "job=ckreg&name="+document.getElementById(a).value+"&type="+c,
		url : "$webdb[www_url]/do/job.php",
		success : function(msg) {
			$('#'+b).html(msg);
		}
	});

	//AJAX.get(b,"$webdb[www_url]/do/job.php?job=ckreg&name="+document.getElementById(a).value+"&type="+c);
}
function ckrepassword() {
	if($('#reg_password').val() != $('#reg_password2').val()) {
		$('#repassword_msg').html('<img src="$webdb[www_url]/images/default/check_error.gif"> 两次密码输入不相同');
	} else {
		$('#repassword_msg').html('<img src="$webdb[www_url]/images/default/check_right.gif">');
	}
}
function sendsms(type){
	if(type == 1){
		if(document.getElementById('reg_email').value==''){
			alert('请输入邮箱帐号');
			document.getElementById('reg_email').focus();
			return false;
		}
		window.open("$webdb[www_url]/do/job.php?job=regsendnum&num="+document.getElementById('reg_email').value+"&type="+type);
	}
}
//-->
</SCRIPT>
<!--
EOT;
?>
-->